package org.misty.seckill.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.type.Alias;
import org.misty.seckill.model.Goods;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@NoArgsConstructor
@Alias("sGoodsVo")
public class SGoodsVo extends Goods {
  @JsonSerialize(using = ToStringSerializer.class)
  private long sid;
  private BigDecimal priceSpike;
  private int stock;
  private Date startDate;
  private Date endDate;
}
